package org.douxiaoban.client.activity;

 import android.app.Activity;
import android.app.SearchManager;
import android.content.Intent;
import android.os.Bundle;
 import org.douxiaoban.client.R;

/**
 * Created by IntelliJ IDEA.
 * User: huangzhongkun
 * Date: 11-6-6
 * Time: 下午6:12
 */
public class SearchActivity extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.search_activity);
        Intent intent = new Intent();

        if(intent.getAction().equals(Intent.ACTION_SEARCH)){
            String query = intent.getStringExtra(SearchManager.QUERY);
            doSearch(query);
        }
    }

    public void doSearch(String query){
        System.out.println(query);
    }
}